package com.library.librarybackend.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;


/**
 * @author 平
 * @description 文件上传表单DTO
 * @since 2025-09-21 14:56
 */
@Data
public class BookUploadFormDTO {

    @NotBlank
    @Schema(description = "书名")
    private String title;

    @Schema(description = "作者")
    private String author;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "封面")
    private MultipartFile coverFile;

    @Schema(description = "出版社")
    private String publisher;

    @Schema(description = "出版年份")
    private Integer publishYear;

    @Schema(description = "分类(以','隔开)")
    private String category;

    @Schema(description = "标签(以','隔开)")
    private String tags;

    @Schema(description = "摘要")
    private String summary;

    @NotNull
    @Schema(description = "文件")
    private MultipartFile bookFile;


}
